package cn.com.edaily.common;

import java.io.Serializable;

/**
 * <pre>类名: RsaKey</pre>
 * <pre>描述: Rsa密钥</pre>
 * <pre>版权: web_chen@163.com</pre>
 * <pre>日期: 2020/1/30 15:34</pre>
 * <pre>作者: chenwb</pre>
 */
public class RsaKey {

	private String publicKey;

	private String privateKey;

	private Integer keyIndex;

	public RsaKey() {
	}

	public RsaKey(String publicKey, String privateKey) {
		this.publicKey = publicKey;
		this.privateKey = privateKey;
	}

	public RsaKey(String publicKey, Integer keyIndex) {
		this.publicKey = publicKey;
		this.keyIndex = keyIndex;
	}

	/**
	 * 获取publicKey
	 *
	 * @return publicKey
	 */
	public String getPublicKey() {
		return publicKey;
	}

	/**
	 * 设置publicKey
	 *
	 * @param publicKey publicKey
	 */
	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}

	/**
	 * 获取privateKey
	 *
	 * @return privateKey
	 */
	public String getPrivateKey() {
		return privateKey;
	}

	/**
	 * 设置privateKey
	 *
	 * @param privateKey privateKey
	 */
	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}

	/**
	 * 获取keyIndex
	 *
	 * @return keyIndex
	 */
	public Integer getKeyIndex() {
		return keyIndex;
	}

	/**
	 * 设置keyIndex
	 *
	 * @param keyIndex keyIndex
	 */
	public void setKeyIndex(Integer keyIndex) {
		this.keyIndex = keyIndex;
	}
}
